package automatic.generate.code.model;

import java.util.Collections;
import java.util.List;

import org.misalen.utils.TextUtil;

public class DataModel {

	/**
	 * 类名 SysUser
	 */
	private String classSimpleName;
	/**
	 * 示例名 sysUser
	 */
	private String simpleName;

	/**
	 * 中划线命名 sys-user
	 */
	private String localName;

	/**
	 * 名称-文字说明 用户管理
	 */
	private String functionName;

	private List<FiledData> addFiledDatas;
	private List<FiledData> updateFiledDatas;
	private List<FiledData> searchFiledDatas;
	private List<FiledData> listFiledDatas;
	private List<FiledData> detailsFiledDatas;
	public String getFunctionName() {
		return functionName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}

	public String getSimpleName() {
		return simpleName;
	}

	public void setSimpleName(String simpleName) {
		this.simpleName = simpleName;
	}

	public String getClassSimpleName() {
		return classSimpleName;
	}

	public void setClassSimpleName(String classSimpleName) {
		this.classSimpleName = classSimpleName;
		setSimpleName(TextUtil.toLowerCaseFirstOne(classSimpleName));
		setLocalName(TextUtil.humpToLine(getSimpleName()));
	}

	public String getLocalName() {
		return localName;
	}

	public void setLocalName(String localName) {
		this.localName = localName;
	}

	public List<FiledData> getAddFiledDatas() {
		return addFiledDatas;
	}

	public void setAddFiledDatas(List<FiledData> addFiledDatas) {
		Collections.reverse(addFiledDatas);
		this.addFiledDatas = addFiledDatas;
	}

	public List<FiledData> getUpdateFiledDatas() {
		return updateFiledDatas;
	}

	public void setUpdateFiledDatas(List<FiledData> updateFiledDatas) {
		Collections.reverse(updateFiledDatas);
		this.updateFiledDatas = updateFiledDatas;
	}

	public List<FiledData> getSearchFiledDatas() {
		return searchFiledDatas;
	}

	public void setSearchFiledDatas(List<FiledData> searchFiledDatas) {
		Collections.reverse(searchFiledDatas);
		this.searchFiledDatas = searchFiledDatas;
	}

	public List<FiledData> getListFiledDatas() {
		return listFiledDatas;
	}

	public void setListFiledDatas(List<FiledData> listFiledDatas) {
		Collections.reverse(listFiledDatas);
		this.listFiledDatas = listFiledDatas;
	}

	public List<FiledData> getDetailsFiledDatas() {
		return detailsFiledDatas;
	}

	public void setDetailsFiledDatas(List<FiledData> detailsFiledDatas) {
		Collections.reverse(detailsFiledDatas);
		this.detailsFiledDatas = detailsFiledDatas;
	}



}
